package com.arron.java基础.流.testio4;

import java.io.*;

public class TestIO4 {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("E:\\架构师进阶之战\\C# 5.0 in a Nutshell 5th.pdf");
        FileOutputStream fos = new FileOutputStream("f:/5th1.pp");
        int len=0;
        len =fis.read();
        while (-1!=len)
        {
            fos.write(len);
            len =fis.read();
        }
        fos.flush();
        fos.close();
        fis.close();
    }
}
